# from restful.post.view import PublishedPostView
# # from restful.user.account import CommonUserAccount, AdminUserAccount
# # from restful.user.info import UserInfo
# # from restful.user.login import CommonUserLogin, AdminUserLogin
from restful.post.view import CommonPostView, CheckPostView


def restful_register(api):
    # # user
    # api.add_resource(CommonUserLogin,'/api/common/user/login')
    # api.add_resource(AdminUserLogin,'/api/admin/user/login')
    # api.add_resource(CommonUserAccount,'/api/common/user/account')
    # api.add_resource(AdminUserAccount,'/api/admin/user/account')
    #
    # api.add_resource(UserInfo,'/api/user/<int:uid>/info')
    #
    # #post
    # api.add_resource(PublishedPostView,'/api/published/post/<int:pid>/view')

    api.add_resource(CheckPostView, '/api/check/post/view/<int:pid>')
    api.add_resource(CommonPostView,'/api/common/post/view/<int:pid>')

